<?php

// Footer display content used as a fallback in all conditions when a footer-content-LOCATION.php doesn't exist in this child theme

// If you are using any of the Wonderflux extra display functions (ie wf_get_page) you currently need to setup a new instance at the top of each file you are using them in
$wfx = new wflux_display_ex;

?>

<div <?php wflux_display::wf_css('size=quarter'); ?> >

	<div class="box-footer">
		<h3>WordPress Twitter feed</h3>

		<?php
		// Advanced example with all controls
		$wfx->wf_twitter_feed('user=wonderflux');
		?>

	</div>

</div>

<div <?php wflux_display::wf_css('size=quarter'); ?> >

	<div class="box-footer">

		<h3>Displaying a WordPress page</h3>

		<p>Have a look in wonderflux-girder/footer-content.php to configure this function to display a WordPress page</p>

		<?php $wfx->wf_get_single_content('id=13&title=N&exerptlimit=5'); ?>

	</div>

	<div class="box-footer">

		<h3>Search</h3>

		<?php get_search_form(); ?>

	</div>

</div>

<?php
/* IMPORTANT
 * We have 2 'quarters' above, this is followed by a 'half' below - making a full width row of columns
 * You need to set the parameter "last" to "Y" on the last column in a row in wf_css function
 * This removes the CSS padding (gutter) after the half display block below and makes everything fit together
 *
 */
 ?>
<div <?php wflux_display::wf_css('size=half&last=Y'); ?> >

	<div class="box-footer">

		<h3>WordPress Twitter feed</h3>

		<?php
		// Advanced example with some controls
		$wfx->wf_twitter_feed('items=3&user=wordpress&showdate=N');
		?>

	</div>

</div>

<?php
// Only render this section if a user is logged in
// wf_edit_meta function actually checks for this anyway, but we dont want empty divs getting rendered because it is untidy!
if ( is_user_logged_in() ) {
?>

<?php
/*IMPORTANT You DONT need to set the parameter "last" to "Y" when using:
size=full
Wonderflux looks after this for you
*/
?>
<div <?php wflux_display::wf_css('size=full'); ?> >

	<div class="box-footer">

		<?php

		// This is an advanced edit/admin control
		$wfx->wf_edit_meta('userintro=Hello&wfcontrols=Y&liclass=wfx-girder-admin-link');
		?>

	</div>

</div>

<?php } ?>